{% extends "models/front_simple.html" %}
{% block title %}Gestion des traductions{% endblock %}
{% block content %}


<table class="datatable border" style="min-width: 1100px; max-width: 1800px">
	<tr class="head">
		<td>Mot</td>
		<td>Prononciation</td>
		<td>Catégorie</td>
		<td>Titre</td>
		<td>Traduction</td>
		<td colspan="2"></td>
	</tr>
	{% for translation in translations %}
	<tr class="{{ cycle(['odd', 'even'], loop.index%2) }}">
		<td>
			{{ translation.term.kana }}
			{% if translation.term.isToneDistinct() %}
			( {{ translation.term.getToneHTML()|raw }} )
			{% endif %}
		</td>
		<td>{{ translation.term.pronunciation_romaji }}</td>
		<td>{{ translation.category }}</td>
		<td>{{ translation.title }}</td>
		<td>{{ translation.translation|nl2br }}</td>
		<td class="icon">{{ datatable.edit("translation_edit.php?id_translation=#{translation.id_translation}") }}</td>
		<td class="icon noborder">{{ datatable.delete("translation_delete.php?id_translation=#{translation.id_translation}") }}</td>
	</tr>
		
	{% endfor %}
</table>
{% endblock %}